package com.dsh.code.entity;

import java.util.List;

public class Page {
	private java.lang.Integer pageNum = 1;//默认为1
	private java.lang.Integer pageSize = 10;//默认为10
	private java.lang.Integer totalPage;
	private java.lang.Integer totalCount;
	private java.lang.Integer nextPage;//下一页
	private java.lang.Integer prePage;//上一页
	private java.lang.Integer start_num = 0;
	private java.lang.Integer end_num = 10;
	private List<?> list;
	
	public Page(){
		
	}
	public Page(Integer pageNo,Integer pageSize){
		if(pageNo!=null){
			this.pageNum=pageNo;
		}
		if(pageSize!=null){
			this.pageSize = pageSize;
		}
		this.start_num = (this.pageNum-1)*this.pageSize;
		this.end_num = this.start_num + this.pageSize;
		
	}
	
	
	
	public java.lang.Integer getStart_num() {
		return start_num;
	}
	public void setStart_num(java.lang.Integer start_num) {
		this.start_num = start_num;
	}
	public java.lang.Integer getEnd_num() {
		return end_num;
	}
	public void setEnd_num(java.lang.Integer end_num) {
		this.end_num = end_num;
	}
	public java.lang.Integer getPageNum() {
		return pageNum;
	}
	public void setPageNum(java.lang.Integer pageNum) {
		this.pageNum = pageNum;
	}
	public java.lang.Integer getPageSize() {
		return pageSize;
	}
	public void setPageSize(java.lang.Integer pageSize) {
		this.pageSize = pageSize;
	}
	public java.lang.Integer getTotalPage() {
		return totalPage;
	}
	public void setTotalPage(java.lang.Integer totalPage) {
		this.totalPage = totalPage;
	}
	public java.lang.Integer getTotalCount() {
		return totalCount;
	}
	public void setTotalCount(java.lang.Integer totalCount) {
		this.totalCount = totalCount;
	}
	public java.lang.Integer getNextPage() {
		return nextPage;
	}
	public void setNextPage(java.lang.Integer nextPage) {
		this.nextPage = nextPage;
	}
	public java.lang.Integer getPrePage() {
		return prePage;
	}
	public void setPrePage(java.lang.Integer prePage) {
		this.prePage = prePage;
	}
	public List<?> getList() {
		return list;
	}
	public void setList(List<?> list) {
		this.list = list;
	}
	
	
	@Override
	public String toString() {
		return "Page [pageNo=" + pageNum + ", pageSize=" + pageSize
				+ ", totalPage=" + totalPage + ", totalCount=" + totalCount
				+ ", nextPage=" + nextPage + ", prePage=" + prePage + ", list="
				+ list + "]";
	}
	
	
	
}
